package dnl.dev.memlog.parser;

import java.util.Date;

import dnl.util.lang.Args;

public class ClassInstanceCount {
	String sampleLabel;
	Date samplingDate;
	int numberOfInstances;

	public ClassInstanceCount(String sampleLabel, Date samplingDate, int numberOfInstances) {
		Args.assertNotNull(samplingDate);
		Args.assertNotNull(sampleLabel);
		this.sampleLabel = sampleLabel;
		this.samplingDate = samplingDate;
		this.numberOfInstances = numberOfInstances;
	}

	public String getSampleLabel() {
		return sampleLabel;
	}

	public void setSampleLabel(String sampleLabel) {
		this.sampleLabel = sampleLabel;
	}

	public Date getSamplingDate() {
		return samplingDate;
	}

	public void setSamplingDate(Date date) {
		this.samplingDate = date;
	}

	public int getNumberOfInstances() {
		return numberOfInstances;
	}

	public void setNumberOfInstances(int numberOfInstances) {
		this.numberOfInstances = numberOfInstances;
	}

	@Override
	public String toString() {
		return samplingDate + ", " + numberOfInstances;
	}

}